import re
import requests

url = 'https://movie.douban.com/top250'
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36'
}
response = requests.get(url, headers=headers)
re_get =re.findall(r'<div class="pic"> <em>.*?</em> <a href="(.*?)"> <img width="100" alt="(.*?)" src="(.*?)"> </a> </div>',response.text, re.S)

# print(re_get)